﻿<phone:PhoneApplicationPage 
    x:Class="RedfieldMobile.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="PortraitOrLandscape" Orientation="Portrait"
    mc:Ignorable="d" d:DesignWidth="480" d:DesignHeight="768"
	xmlns:my="clr-namespace:RFW.Silverlight.Weather;assembly=RFW.Silverlight.Weather"
    shell:SystemTray.IsVisible="True" Loaded="PhoneApplicationPage_Loaded">

    <!--LayoutRoot contains the root grid where all other page content is placed-->
    <Grid x:Name="LayoutRoot" Background="Transparent">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>

        <!--TitlePanel contains the name of the application and page title-->
        <StackPanel x:Name="TitlePanel" Grid.Row="0" Margin="24,24,0,12">
            <TextBlock x:Name="ApplicationTitle" Text="REDFIELD WEATHER MOBILE" Style="{StaticResource PhoneTextNormalStyle}"/>
            <TextBlock x:Name="PageTitle" Text="current" Style="{StaticResource PhoneTextTitle1Style}"/>
        </StackPanel>

        <!--ContentPanel - place additional content here-->
        <Grid x:Name="ContentGrid" Grid.Row="1">
			<Grid.ColumnDefinitions>
				<ColumnDefinition />
				<ColumnDefinition />
			</Grid.ColumnDefinitions>
			<Grid.RowDefinitions>
				<RowDefinition Height="Auto" />
				<RowDefinition />
			</Grid.RowDefinitions>
			<my:WindDirection HorizontalAlignment="Center" Name="wcWind" VerticalAlignment="Top" Height="200" Width="200" Grid.Row="1" Margin="0,20,40,0" />
			<StackPanel Grid.Row="0" Grid.Column="0" Height="Auto" Width="Auto"  HorizontalAlignment="Left" Name="stackPanel1" VerticalAlignment="Top">
				<TextBlock Text="Temperature" />
				<my:DigitalDisplay Margin="20,5,5,0" HorizontalAlignment="Right" Name="ddTemp" VerticalAlignment="Top" NumberOfDigits="3,1" Grid.Column="2" Grid.Row="2" Height="55" Width="150" />
				<TextBlock Text="Humidity" />
				<my:DigitalDisplay Margin="20,5,5,0" Height="55" HorizontalAlignment="Right" Name="ddHumidity" NumberOfDigits="3,1" VerticalAlignment="Top" Width="150" Grid.Column="3" Grid.Row="2" />
				<TextBlock Text="Pressure" />
				<my:DigitalDisplay Margin="20,5,5,0" Height="55" HorizontalAlignment="Right" Name="ddPressure" NumberOfDigits="2,2" VerticalAlignment="Top" Width="150" Grid.Column="4" Grid.Row="2" />
			</StackPanel>
		</Grid>
		<ProgressBar Height="18" HorizontalAlignment="Left" Name="pbLoading" Visibility="Collapsed" VerticalAlignment="Top" Width="480" />
	</Grid>
    
    <phone:PhoneApplicationPage.ApplicationBar>
        <shell:ApplicationBar IsVisible="True" IsMenuEnabled="True" Opacity=".5">
            <shell:ApplicationBarIconButton x:Name="btnAdd" IconUri="/Images/Icons/Add.png" Text="Add"></shell:ApplicationBarIconButton>
            <shell:ApplicationBarIconButton x:Name="btnOptions" IconUri="/Images/Icons/Options.png" Text="Options"></shell:ApplicationBarIconButton>
        </shell:ApplicationBar>
    </phone:PhoneApplicationPage.ApplicationBar>


</phone:PhoneApplicationPage>
